package pojo;


import net.sf.json.JSONArray;

import java.util.List;

/**
 * Created by csmd on 2017/9/26.
 */
public class test {
    public static void main(String[] args) {
//        User u = new User();
//        u.setName("1");
//        String name = u.getName();
////        if(name.isEmpty()){
//        if(name != null &&  !"".equals(name)){
//            System.out.print("yyyyyyyy");
//        }else{
//            System.out.print("nnnnnnnnnnnnnnn");
//        }
        String jsonMessage = "[0,1,2]";
        JSONArray jsonArray=JSONArray.fromObject(jsonMessage);
        List listStr=JSONArray.toList(jsonArray);
        for (Object s : listStr) {
            System.out.println(s.toString());
        }
         String s1 = "Programming";
         String s2 = new String("Programming");
         String s3 = "Program" + "ming";
         System.out.println(s1 == s2);
         System.out.println(s1 == s3);
         System.out.println(s1 == s1.intern());
    }
}
